package com.bwf.jdbc2;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/6/1 16:09
 * @Copyright 博为峰
 */
public class DBUtil {
    public static Connection getConn() throws SQLException {
        Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/test?serverTimezone=UTC", "root", "123456");
        return connection;
    }
}
